﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fiuba.Algo3.Titiritero.Vista;
using System.Drawing;
using System.IO;
namespace BattleCity
{
    class VistaBonusVelocidad : Cuadrado
    {
        public VistaBonusVelocidad(BonusVelocidad unBonus)
            : base(20, 20, System.Drawing.Color.Aquamarine)
        {
            this.Posicionable = unBonus;
            this.Direccionable = unBonus;
        }
        public override Bitmap ObtenerImagen()
        {
            string file = @"Images\BonusVelocidad.jpg";
            if (!File.Exists(file))
            {
                throw new FileNotFoundException();
            }

            return (new Bitmap(file));
        }
    }
    class VistaBonusVida : Cuadrado
    {
        public VistaBonusVida(BonusVida unBonus)
            : base(20, 20, System.Drawing.Color.Aquamarine)
        {
            this.Posicionable = unBonus;
            this.Direccionable = unBonus;
        }
        public override Bitmap ObtenerImagen()
        {
            string file = @"Images\BonusVida.jpg";
            if (!File.Exists(file))
            {
                throw new FileNotFoundException();
            }

            return (new Bitmap(file));
        }
    }
}
